/*
 * Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved.
 * Description: Hmfs-tools mkfs nat writer
 */

#ifndef NAT_WRITER_H
#define NAT_WRITER_H

#include <memory>
#include <string>
#include <sys/types.h>

#include "hmfs_command.h"
#include "hmfs_fs.h"

namespace OHOS {
namespace Hmfs {
class MkfsFormat;
class NatWriter {
public:
    NatWriter(MkfsFormat &mkfs);
    ~NatWriter() = default;

    int32_t Format();

private:
    int32_t InitNat();
    int32_t UpdateNatRoot();

    MkfsFormat &mkfs_;
};

} // namespace Hmfs
} // namespace OHOS
#endif // NAT_WRITER_H
